// 数组去重
export const useHandleArray = () => {
    const arrayDeduplication = (arr, targetArr) => {
        if (arr && arr.length) {
            arr.forEach(item => {
                if (item !== null & item !== undefined && item !== '' && !targetArr.includes(item)) targetArr.push(item)
            })
        }
        return targetArr
    }
    return { arrayDeduplication }
}